package center.leon.zoowebsentinel.monkey.controller;

import center.leon.zoocommon.common.Response;
import center.leon.zoowebsentinel.monkey.vo.Monkey;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : Leon on XXM Mac
 * @since : create in 2024/8/20 14:24
 */
@RestController
@RequestMapping(value = "/monkey")
public class MonkeyController {

    @GetMapping(value = "/hello")
    public Response<Monkey> helloWorld(){
        return Response.success(new Monkey().setColor("red").setName("leon"));
    }
}
